package org.lc.service.system.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import org.lc.platform.base.vo.LcVo;
import org.lc.service.system.entity.SysDepartment;
import org.lc.service.system.entity.SysRole;

import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
@ToString(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@Schema()
public class SysUserVo extends LcVo {
    /**
     * 账号
     */
    @Schema(description = "账号")
    private String account;

    /**
     * 用户名
     */
    @Schema(description = "用户名")
//    @FieldMask(value = MaskEnum.CHINESE_NAME)
    private String name;

    /**
     * 账号状态
     */
    @Schema(description = "账号状态")
    private Integer status;

    /**
     * 是否禁用
     */
    @Schema(description = "是否禁用")
    private boolean forbidden;


    /**
     * 是否在线
     */
    @Schema(description = "是否在线")
    private boolean online;
    /**
     * 手机号
     */
//    @FieldMask(value = MaskEnum.MOBILE_PHONE)
    @Schema(description = "手机号")
    private String phone;

    @Schema(description = "用户角色")
    private List<SysRole> roles;

    @Schema(description = "用户所在部门")
    private List<SysDepartment> department;
}
